package com.scar1et.proxy.proxy;

/**
 * 真实事件
 * Created by scar1et on 15-11-2.
 */
public class Proxy implements Subject {
    private RealSubject realSubject;

    public Proxy() {
        realSubject = new RealSubject();
    }

    @Override
    public void request() {
        realSubject.request();
        System.out.println("代理做的其他事");
    }
}
